package com.example.money.Service.Impl;

import com.example.money.Dao.AddDao;
import com.example.money.Entity.add;
import com.example.money.Service.AddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddImpl implements AddService {
    /**
     * 实现新增
     */
    @Autowired
    private AddDao addDao;

    @Override
    public boolean add(add add) {
        int i=addDao.add(add);
        return i>0;
    }
}
